/**
 * 
 */
package com.jie.eclipse.pan.action;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.IEditorReference;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.internal.EditorReference;

import com.jie.eclipse.pan.utils.Utils;

/**
 * @author yanjie
 *
 */
public class PanDeveloperLog implements IWorkbenchWindowActionDelegate{
	private IWorkbenchWindow wd = null; 
	
	public void run(IAction arg0) {
		try {
			
			this.wd.getActivePage().openEditor(PanEditor.getInstance(), "com.jie.eclipse.pan.editors.LogEditor");
		} catch (Exception e) {
			Utils.print(e.getMessage());
		}
	}

	
	public void selectionChanged(IAction arg0, ISelection arg1) {
		
	}

	
	public void dispose() {
		
	}

	public void init(IWorkbenchWindow workbenchWindow) {
		this.wd = workbenchWindow;
	}

}
